package com.itcast.bulls.stock.user.service;

import com.itcast.bulls.stock.common.exception.ComponentException;
import com.itcast.bulls.stock.entity.user.TradeUserFile;
import org.springframework.web.multipart.MultipartFile;

public interface IStockUserFileService {
    /**
     * 上传用户省份证文件
     * @return
     */
    String uploadUserIdCard(Long userId, MultipartFile file) throws Exception;

    /**
     * 根据文件ID查找文件对象
     * @param fileId
     * @return
     */
    TradeUserFile getTradeUserFile(String fileId) throws ComponentException;
}
